-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
thriftbp: Metrics cleanup #581
Conversation
e62d1ee
to
bc97a85
Compare
Remove statsd metrics, and rename some prometheus metrics to comply with prometheus naming convention. For renamed prometheus metrics, temporarily emitting both old and new, but mark old ones as deprecated to be removed later. Also remove some statsd only features: 1. CountedServerTransport is marked as deprecated and no longer used by other code. 2. In ReportPayloadSizeMetrics server middleware, the rate arg is deprecated and the prometheus metrics is always reported. 3. ClientPoolConfig.MetricsTags & ClientPoolConfig.ReportPoolStats are deprecated. The pool stats are always reported as prometheus metrrics.
bc97a85
to
b5cc9f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably good to get a ✅ from someone more familiar with the code, but this all looks great to me! Always great to see us ✂️ and clean up old stuff
}, panicRecoverLabels) | ||
|
||
panicRecoverCounter = promauto.With(prometheusbpint.GlobalRegistry).NewCounterVec(prometheus.CounterOpts{ | ||
Name: "thriftbp_server_recovered_panics_total", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically (according to some dictionaries) "panic" is uncountable as a noun, but I think we pretty much use it as countable noun in go.
Remove/deprecate statsd metrics, and rename an httpbp prometheus metrics similar to the thriftbp one in reddit#581.
Remove/deprecate statsd metrics, and rename an httpbp prometheus metrics similar to the thriftbp one in reddit#581.
Remove/deprecate statsd metrics, and rename an httpbp prometheus metrics similar to the thriftbp one in reddit#581.
Remove/deprecate statsd metrics, and rename an httpbp prometheus metrics similar to the thriftbp one in #581.
Remove statsd metrics, and rename some prometheus metrics to comply with prometheus naming convention. For renamed prometheus metrics, temporarily emitting both old and new, but mark old ones as deprecated to be removed later.
Also remove some statsd only features: